﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Orchid
{
    public class Article
    {
        public Article(string title, string content, string author)
        {
            Title = title;
            Content = content;
            Author = author;
        }

        public string Title
        {
            get;
            set;
        }

        public string Content
        {
            get;
            set;
        }

        public string Author
        {
            get;
            set;
        }

        public static List<Article> Articles
        {
            get;
            private set;
        }

        static public void Add(Article article)
        {
            if (Article.Articles == null)
            {
                Article.Articles = new List<Article>();
            }
            Article.Articles.Add(article);

        }
    }
}
